#!/bin/bash

declare -i s1=0
declare -i s2=0
for (( VAR = 0; VAR < 100; ++VAR ));
do
s1=s1+VAR
if [ $VAR -eq 50 ]; then
    continue
fi
done
echo "s1=$s1"

for (( VAR = 0; VAR < 100; ++VAR )); do
s2=s2+VAR
if [ $VAR -eq 50 ];then
break
fi
done

echo "s2=$s2"


